<#
include("/include/leftMenuHeader.html",{}){}
#>
<div class="right-article">
    <div class="row row-right-content"
         style="margin-left: 0; margin-right: 0;">
        <div class="col-sm-12 right-content">
            <div class="row row-right-content row-nav">
                <#
                include("/include/crumbs.html",{}){}
                #>

            </div>
            <div class="row row-right-content">
                <div class="btn-team">
                    <# if(so.hasPermission("资源管理:BtnAdd")){ #>
                    <button class="btn btn-default"  id='BtnAdd' >新建资源</button>
                    <#}#>
                    <# if(so.hasPermission("资源管理:BtnUpdate")){ #>
                    <button class="btn btn-default" id='BtnUpdate' >编辑资源</button>
                    <#}#>
                    <# if(so.hasPermission("资源管理:BtnDel")){ #>
                    <button class="btn btn-default" id='BtnDel' >删除资源</button>
                    <#}#>
                    <!--<button class="btn btn-default" id='BtnSort' >排序</button>-->
                    <select  class="custom-select btn btn-default " name="subtype" id="subtype">
                        <option value="0">系统资源</option>
                        <option value="1">业务资源</option>
                    </select>
                </div>
                <div class="user-tables">
                    <div id="menu_table" style="padding-top:10px;"></div>
                </div>


            </div>
        </div>
    </div>
</div>
<script id="menuTableTpl" type="text/html">
    <table class="layui-table">
        <col width="160px" />
        <col width="80px" />
        <col width="160px" />
        <col width="120px" />
        <thead>
        <tr>
            <th>资源名称</th>
            <th> 资源说明</th>
            <th>资源URL</th>
            <th>资源按钮</th>

        </tr>
        </thead>
        <tbody>
        {{# layui.each(d.rows,function(index,r){ }}
        <tr>
            <td><input type="checkbox"  id="{{r.id}}" value="{{r.id}}"/>{{r.name || '' }}</td>
            <td>{{r.descript  || ''  }}</td>
            <td>{{r.url || ''}}</td>
            <td>{{r.button || ''}}</td>
        </tr>
        {{# }); }}
        </tbody>
    </table>
</script>
<script type="text/javascript" src="${base}/js/development/system/resourcesmanager/resource.js"></script>
<link rel="stylesheet" href="${base}/css/development/sys/resourcesmanager/resource.css">
</body>
</html>